package com.excerise.methods;

import com.excerise.methods.entity.MethodParameter;

/**
 *
 *
 * @author Way on 2021/7/28
 */
public class Test03 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        // 基本数据类型，传递的是值（值拷贝）形参的任何改变不影响实参
        MethodParameter parameter = new MethodParameter();
        parameter.swap(a, b);
        System.out.printf("\n当前a和b的值，a = %d, b = %d", a, b);
    }
}
